Integrand size = 26, antiderivative size = 174 \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\frac {(c+d x)^{3/2}}{12 d}+\frac {\sqrt {d} \sqrt {\frac {\pi }{2}} \cos \left (4 a-\frac {4 b c}{d}\right ) \operatorname {FresnelS}\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}+\frac {\sqrt {d} \sqrt {\frac {\pi }{2}} \operatorname {FresnelC}\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (4 a-\frac {4 b c}{d}\right )}{64 b^{3/2}}-\frac {\sqrt {c+d x} \sin (4 a+4 b x)}{32 b} \]
1/12*(d*x+c)^(3/2)/d+1/128*cos(4*a-4*b*c/d)*FresnelS(2*b^(1/2)*2^(1/2)/Pi^ (1/2)*(d*x+c)^(1/2)/d^(1/2))*d^(1/2)*2^(1/2)*Pi^(1/2)/b^(3/2)+1/128*Fresne lC(2*b^(1/2)*2^(1/2)/Pi^(1/2)*(d*x+c)^(1/2)/d^(1/2))*sin(4*a-4*b*c/d)*d^(1 /2)*2^(1/2)*Pi^(1/2)/b^(3/2)-1/32*sin(4*b*x+4*a)*(d*x+c)^(1/2)/b
Result contains complex when optimal does not.
Time = 0.02 (sec) , antiderivative size = 120, normalized size of antiderivative = 0.69 \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\frac {(c+d x)^{3/2} \left (32+\frac {3 e^{4 i \left (a-\frac {b c}{d}\right )} \Gamma \left (\frac {3}{2},-\frac {4 i b (c+d x)}{d}\right )}{\left (-\frac {i b (c+d x)}{d}\right )^{3/2}}+\frac {3 e^{-4 i \left (a-\frac {b c}{d}\right )} \Gamma \left (\frac {3}{2},\frac {4 i b (c+d x)}{d}\right )}{\left (\frac {i b (c+d x)}{d}\right )^{3/2}}\right )}{384 d} \]
((c + d*x)^(3/2)*(32 + (3*E^((4*I)*(a - (b*c)/d))*Gamma[3/2, ((-4*I)*b*(c + d*x))/d])/(((-I)*b*(c + d*x))/d)^(3/2) + (3*Gamma[3/2, ((4*I)*b*(c + d*x ))/d])/(E^((4*I)*(a - (b*c)/d))*((I*b*(c + d*x))/d)^(3/2))))/(384*d)
Time = 0.49 (sec) , antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {4906, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sqrt {c+d x} \sin ^2(a+b x) \cos ^2(a+b x) \, dx\) |
\(\Big \downarrow \) 4906 |
\(\displaystyle \int \left (\frac {1}{8} \sqrt {c+d x}-\frac {1}{8} \sqrt {c+d x} \cos (4 a+4 b x)\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \sin \left (4 a-\frac {4 b c}{d}\right ) \operatorname {FresnelC}\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}+\frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \cos \left (4 a-\frac {4 b c}{d}\right ) \operatorname {FresnelS}\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}-\frac {\sqrt {c+d x} \sin (4 a+4 b x)}{32 b}+\frac {(c+d x)^{3/2}}{12 d}\) |
(c + d*x)^(3/2)/(12*d) + (Sqrt[d]*Sqrt[Pi/2]*Cos[4*a - (4*b*c)/d]*FresnelS [(2*Sqrt[b]*Sqrt[2/Pi]*Sqrt[c + d*x])/Sqrt[d]])/(64*b^(3/2)) + (Sqrt[d]*Sq rt[Pi/2]*FresnelC[(2*Sqrt[b]*Sqrt[2/Pi]*Sqrt[c + d*x])/Sqrt[d]]*Sin[4*a - (4*b*c)/d])/(64*b^(3/2)) - (Sqrt[c + d*x]*Sin[4*a + 4*b*x])/(32*b)
3.2.27.3.1 Defintions of rubi rules used
Int[Cos[(a_.) + (b_.)*(x_)]^(p_.)*((c_.) + (d_.)*(x_))^(m_.)*Sin[(a_.) + (b _.)*(x_)]^(n_.), x_Symbol] :> Int[ExpandTrigReduce[(c + d*x)^m, Sin[a + b*x ]^n*Cos[a + b*x]^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && IGtQ[n, 0] && IG tQ[p, 0]
Time = 0.47 (sec) , antiderivative size = 159, normalized size of antiderivative = 0.91
method | result | size |
derivativedivides | \(\frac {\frac {\left (d x +c \right )^{\frac {3}{2}}}{12}-\frac {d \sqrt {d x +c}\, \sin \left (\frac {4 b \left (d x +c \right )}{d}+\frac {4 a d -4 c b}{d}\right )}{32 b}+\frac {d \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {4 a d -4 c b}{d}\right ) \operatorname {FresnelS}\left (\frac {2 \sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )+\sin \left (\frac {4 a d -4 c b}{d}\right ) \operatorname {FresnelC}\left (\frac {2 \sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{128 b \sqrt {\frac {b}{d}}}}{d}\) | \(159\) |
default | \(\frac {\frac {\left (d x +c \right )^{\frac {3}{2}}}{12}-\frac {d \sqrt {d x +c}\, \sin \left (\frac {4 b \left (d x +c \right )}{d}+\frac {4 a d -4 c b}{d}\right )}{32 b}+\frac {d \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {4 a d -4 c b}{d}\right ) \operatorname {FresnelS}\left (\frac {2 \sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )+\sin \left (\frac {4 a d -4 c b}{d}\right ) \operatorname {FresnelC}\left (\frac {2 \sqrt {2}\, b \sqrt {d x +c}}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{128 b \sqrt {\frac {b}{d}}}}{d}\) | \(159\) |
2/d*(1/24*(d*x+c)^(3/2)-1/64/b*d*(d*x+c)^(1/2)*sin(4*b/d*(d*x+c)+4*(a*d-b* c)/d)+1/256/b*d*2^(1/2)*Pi^(1/2)/(b/d)^(1/2)*(cos(4*(a*d-b*c)/d)*FresnelS( 2*2^(1/2)/Pi^(1/2)/(b/d)^(1/2)*b*(d*x+c)^(1/2)/d)+sin(4*(a*d-b*c)/d)*Fresn elC(2*2^(1/2)/Pi^(1/2)/(b/d)^(1/2)*b*(d*x+c)^(1/2)/d)))
Time = 0.26 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.01 \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\frac {3 \, \sqrt {2} \pi d^{2} \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {S}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) + 3 \, \sqrt {2} \pi d^{2} \sqrt {\frac {b}{\pi d}} \operatorname {C}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) + 16 \, {\left (2 \, b^{2} d x + 2 \, b^{2} c - 3 \, {\left (2 \, b d \cos \left (b x + a\right )^{3} - b d \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )\right )} \sqrt {d x + c}}{384 \, b^{2} d} \]
1/384*(3*sqrt(2)*pi*d^2*sqrt(b/(pi*d))*cos(-4*(b*c - a*d)/d)*fresnel_sin(2 *sqrt(2)*sqrt(d*x + c)*sqrt(b/(pi*d))) + 3*sqrt(2)*pi*d^2*sqrt(b/(pi*d))*f resnel_cos(2*sqrt(2)*sqrt(d*x + c)*sqrt(b/(pi*d)))*sin(-4*(b*c - a*d)/d) + 16*(2*b^2*d*x + 2*b^2*c - 3*(2*b*d*cos(b*x + a)^3 - b*d*cos(b*x + a))*sin (b*x + a))*sqrt(d*x + c))/(b^2*d)
\[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\int \sqrt {c + d x} \sin ^{2}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}\, dx \]
Result contains complex when optimal does not.
Time = 0.32 (sec) , antiderivative size = 219, normalized size of antiderivative = 1.26 \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\frac {\sqrt {2} {\left (\frac {64 \, \sqrt {2} {\left (d x + c\right )}^{\frac {3}{2}} b^{2}}{d} - 24 \, \sqrt {2} \sqrt {d x + c} b \sin \left (\frac {4 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right ) + 3 \, {\left (\left (i + 1\right ) \, \sqrt {\pi } d \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) - \left (i - 1\right ) \, \sqrt {\pi } d \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {\frac {i \, b}{d}}\right ) + 3 \, {\left (-\left (i - 1\right ) \, \sqrt {\pi } d \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) + \left (i + 1\right ) \, \sqrt {\pi } d \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {-\frac {i \, b}{d}}\right )\right )}}{1536 \, b^{2}} \]
1/1536*sqrt(2)*(64*sqrt(2)*(d*x + c)^(3/2)*b^2/d - 24*sqrt(2)*sqrt(d*x + c )*b*sin(4*((d*x + c)*b - b*c + a*d)/d) + 3*((I + 1)*sqrt(pi)*d*(b^2/d^2)^( 1/4)*cos(-4*(b*c - a*d)/d) - (I - 1)*sqrt(pi)*d*(b^2/d^2)^(1/4)*sin(-4*(b* c - a*d)/d))*erf(2*sqrt(d*x + c)*sqrt(I*b/d)) + 3*(-(I - 1)*sqrt(pi)*d*(b^ 2/d^2)^(1/4)*cos(-4*(b*c - a*d)/d) + (I + 1)*sqrt(pi)*d*(b^2/d^2)^(1/4)*si n(-4*(b*c - a*d)/d))*erf(2*sqrt(d*x + c)*sqrt(-I*b/d)))/b^2
Result contains complex when optimal does not.
Time = 0.57 (sec) , antiderivative size = 460, normalized size of antiderivative = 2.64 \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=-\frac {-\frac {3 i \, \sqrt {2} \sqrt {\pi } {\left (8 \, b c - i \, d\right )} d \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {4 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} + \frac {3 i \, \sqrt {2} \sqrt {\pi } {\left (8 \, b c + i \, d\right )} d \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {4 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} + 24 \, {\left (\frac {i \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {4 \, {\left (i \, b c - i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} - \frac {i \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (-\frac {4 \, {\left (-i \, b c + i \, a d\right )}}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} - 8 \, \sqrt {d x + c}\right )} c - 64 \, {\left (d x + c\right )}^{\frac {3}{2}} + 192 \, \sqrt {d x + c} c + \frac {12 i \, \sqrt {d x + c} d e^{\left (-\frac {4 \, {\left (i \, {\left (d x + c\right )} b - i \, b c + i \, a d\right )}}{d}\right )}}{b} - \frac {12 i \, \sqrt {d x + c} d e^{\left (-\frac {4 \, {\left (-i \, {\left (d x + c\right )} b + i \, b c - i \, a d\right )}}{d}\right )}}{b}}{768 \, d} \]
-1/768*(-3*I*sqrt(2)*sqrt(pi)*(8*b*c - I*d)*d*erf(-I*sqrt(2)*sqrt(b*d)*sqr t(d*x + c)*(I*b*d/sqrt(b^2*d^2) + 1)/d)*e^(-4*(I*b*c - I*a*d)/d)/(sqrt(b*d )*(I*b*d/sqrt(b^2*d^2) + 1)*b) + 3*I*sqrt(2)*sqrt(pi)*(8*b*c + I*d)*d*erf( I*sqrt(2)*sqrt(b*d)*sqrt(d*x + c)*(-I*b*d/sqrt(b^2*d^2) + 1)/d)*e^(-4*(-I* b*c + I*a*d)/d)/(sqrt(b*d)*(-I*b*d/sqrt(b^2*d^2) + 1)*b) + 24*(I*sqrt(2)*s qrt(pi)*d*erf(-I*sqrt(2)*sqrt(b*d)*sqrt(d*x + c)*(I*b*d/sqrt(b^2*d^2) + 1) /d)*e^(-4*(I*b*c - I*a*d)/d)/(sqrt(b*d)*(I*b*d/sqrt(b^2*d^2) + 1)) - I*sqr t(2)*sqrt(pi)*d*erf(I*sqrt(2)*sqrt(b*d)*sqrt(d*x + c)*(-I*b*d/sqrt(b^2*d^2 ) + 1)/d)*e^(-4*(-I*b*c + I*a*d)/d)/(sqrt(b*d)*(-I*b*d/sqrt(b^2*d^2) + 1)) - 8*sqrt(d*x + c))*c - 64*(d*x + c)^(3/2) + 192*sqrt(d*x + c)*c + 12*I*sq rt(d*x + c)*d*e^(-4*(I*(d*x + c)*b - I*b*c + I*a*d)/d)/b - 12*I*sqrt(d*x + c)*d*e^(-4*(-I*(d*x + c)*b + I*b*c - I*a*d)/d)/b)/d
Timed out. \[ \int \sqrt {c+d x} \cos ^2(a+b x) \sin ^2(a+b x) \, dx=\int {\cos \left (a+b\,x\right )}^2\,{\sin \left (a+b\,x\right )}^2\,\sqrt {c+d\,x} \,d x \]